package top.infopub.mgr.ic.service;

import java.util.List;

import com.github.pagehelper.Page;

import top.infopub.mgr.ic.domain.StartBuildDomain;
import top.infopub.mgr.ic.vo.StartBuildVo;
import top.infopub.model.ic.StartBuild;
import top.infopub.model.ic.StartBuildAtt;
import top.infopub.model.ic.StartBuildRisk;
import top.infopub.generic.GenericService;

public interface StartBuildService extends GenericService<StartBuild, String> {

    /**
     * 根据条件查询分页记录
     * @param page
     * @param startBuildVo
     * @return 
     * @see
     */
    Page<StartBuildDomain> selectByDomainWhere(Page<StartBuildDomain> page,
                                               StartBuildVo startBuildVo);

    /**
     * 根据条件查询-我审批的分页记录
     * @param page
     * @param startBuildVo
     * @return 
     * @see
     */
    Page<StartBuildDomain> selectMyCheckByDomainWhere(Page<StartBuildDomain> page,
                                                      StartBuildVo startBuildVo);

    /**
     * 根据id查询记录详情  
     * @param id 主键id
     * @return 
     * @see
     */
    StartBuildVo queryById(String id);

    /**
     * 新增记录
     * @param startBuild
     * @param startBuildRisks
     * @param startBuildAtts 
     * @see
     */
    void saveStartBuild(StartBuildVo startBuild, List<StartBuildRisk> startBuildRisks,
                        List<StartBuildAtt> startBuildAtts);
 
}